<div id="ctxUserManage">
    <h4>Users Management</h4>

    <div class="data">
        <table>
            <thead>
            <tr>
                <th>NO.</th>
                <th>Username</th>
                <th>Password</th>
                <th style="width: 10px"><STRONG>Operation</STRONG></th>
            </tr>
            </thead>
            <tbody>
            <?php $index=0; $rightClass = ''; ?>
            <?php foreach ($list as $user): ?>
                <?php
                $index = $index + 1;
                if ($index % 4 == 0) {
                    $rightClass = 'odd';
                } else {
                    $rightClass = '';
                }
                ?>
            <tr class="<?php echo $rightClass;?>">
                <td><?php echo $index ?>.</td>
                <td><?php echo $user->username ?></td>
                <td><?php echo $user->password ?></td>
                <td><STRONG><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?r=admin/userDelete&id=<?php echo $manager->id ?>" onclick="return confirm('are you sure you want to delete this item?');">DELETE</a></STRONG></td>
            </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
        <?php $this->widget('CLinkPager', array('header' => '', 'prevPageLabel' => '<', 'nextPageLabel' => '>', 'pages' => $pages)); ?>
    </div>
    <form method="post"><input type="hidden" name="opt" value="del"/>
        <input type="hidden" name="newsid" value=""/>
    </form>
    <h4 id="usersinfo_pagelinks"></h4>
</div>